package ch03sz;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入第一个数:");
        double aa =input.nextDouble();
        System.out.println("请输入操作符");
        String czf=input.next();
        System.out.println("请输入第二个数:");
        double bb =input.nextDouble();
        Operation operation= OptionerFactory.createOptioner(czf);
        operation.setAa(aa);
        operation.setBb(bb);
        double jg = operation.getResult();
        System.out.println("结果为:"+ jg);
    }
}
